package org.springframework.learn.beans.note.editor;

import lombok.Data;
import org.springframework.context.annotation.Bean;

/**
 * Description
 * Copyright © 启明星辰 版权所有
 *
 * @author chenjiquan
 * @date 2023-07-12
 */
public class Person {
	private String name;
	private Address address;

	@Bean(autowireCandidate = false, initMethod = "init")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Address getAddress() {
		return address;
	}

	public void setAddress(Address address) {
		this.address = address;
	}

	@Override
	public String toString() {
		return "Person{" +
				"name='" + name + '\'' +
				", address=" + address +
				'}';
	}
}
